﻿#ifndef DISPOSETHREAD_H
#define DISPOSETHREAD_H

#include <QThread>

class DisposeThread : public QThread
{
    Q_OBJECT
public:
    explicit DisposeThread(QObject *parent = nullptr);
    ~DisposeThread();
    void stop();
signals:
    void signal_workStatus(bool isRun);
    void signal_workMsg(QString msg);
private:
    void scanDirectory(const QString &path,const QStringList &removeNameList,const QMap<QString, QString> &replaceNameMap);
protected:
    void run() override;
private:
    bool isRun;

    QStringList skipFilePath;

    int totalFiles;
    int removedCount;
    int replacedCount;

    bool isError;
};

#endif // DISPOSETHREAD_H
